<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/6
  Time: 13:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
    <title>添加新闻</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/news/addNews" enctype="multipart/form-data" method="post" style="padding-top:-700px;">
    类型：<input type="text" name="type" value=""><br><br>
    标题：<input type="text" name="title" value=""><br><br>
    图片：<input type="file" name="icon" value=""><br><br>
    链接：<input type="text" name="url" value=""><br><br>
    内容：<input type="text" name="contents" value=""><br><br>
    日期：<input type="text" name="date" value=""><br><br>
    来源：<input type="text" name="source" value=""><br><br>
    <input type="submit" value="添加" name="denglu"><input type="reset" value="重置"><br>
</form>

</body>
</html>
